from rest_framework import routers
from django.urls import re_path

from dvadmin_uniapp.views.login import UniAppWxLoginView, UniAppSendSmsView, UniAppPhoneLoginView, UniAppUserInfoView

router_url = routers.SimpleRouter()
router_url.register(r'user_info', UniAppUserInfoView)
urlpatterns = [
    # 登录
    re_path(r'^wxlogin/$', UniAppWxLoginView.as_view()),
    re_path(r'^send_sms/$', UniAppSendSmsView.as_view()),
    re_path(r'^phone_login/$', UniAppPhoneLoginView.as_view()),
]
urlpatterns += router_url.urls
